<template>
  <el-dropdown>
    <el-button type="warning" icon="Download" size="small" plain auto-insert-space>
      导出
      <el-icon class="el-icon--right">
        <arrow-down />
      </el-icon>
    </el-button>
    <template #dropdown>
      <el-dropdown-menu>
        <el-dropdown-item @click="exportAll">导出所有</el-dropdown-item>
        <el-dropdown-item @click="exportCurrent">导出一页</el-dropdown-item>
      </el-dropdown-menu>
    </template>
  </el-dropdown>
</template>

<script setup name="ExportExcel">
const emit = defineEmits()
function exportAll() {
  emit('exportAll')
}

function exportCurrent() {
  emit('exportCurrent')
}
</script>

<style lang="scss" scoped>

</style>
